package com.ls.markt.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用于导入球员的类  俱乐部名称为中文
 */
@Data
public class PlayerImportDTO {

    @ExcelProperty(value = "号码",index = 0)
    private int number;//号码

    @ExcelProperty(value = "姓名",index = 1)
    private String name;//名称

    @ExcelProperty(value = "生日",index = 2)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthday;//生日

    @ExcelProperty(value = "国籍",index = 3)
    private String nat;//国籍

    @ExcelProperty(value = "俱乐部",index = 4)
    private String clubName;//俱乐部

    @ExcelProperty(value = "身高",index = 5)
    private int height;//身高

    @ExcelProperty(value = "外援",index = 6)
    private Integer isForeigner;//外援

    @ExcelProperty(value = "国籍比赛次数",index = 7)
    private int internationalMatches;//国籍比赛次数

    @ExcelProperty(value = "身价",index = 8)
    private int marketValue;//身价 m-百万  k
}
